package com.itheima.assemble;

import java.util.List;

/*1.使用构造注入
 * */
public class User{
	private String username;
	private Integer password;
	private List<String> list;

	/*1.使用构造注入
	 * */
	public User(String username, Integer password, List<String> list){
		this.username = username;
		this.password = password;
		this.list = list;
	}
	/*
	 * 2.使用设值注入
	 */
	public User() {
		super();
	}
	public void setUsername(String username) {
		this.username = username;
	}

	public void setPassword(Integer password) {
		this.password = password;
	}

	public void setList(List<String> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "User {username=" + username + ",password=" + password + ",list=" + list + "}";
	}

}
